package com.example.utils;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author zhy
 * @version 1.0.0
 * @ClassName ParamsFilter.java
 * @Description 处理http请求参数的filter
 * @createTime 2021年08月05日 11:17:00
 */
public class ParamsFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        TrimReqParamWrapper trimReqParamWrapper = new TrimReqParamWrapper((HttpServletRequest) servletRequest);
        filterChain.doFilter(trimReqParamWrapper, servletResponse);
    }


}
